package com.learning.spring.cloud.ms.gateway.zuul;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

/**
 * ClassName: MsGatewayZuulApplication
 * Description:
 * Date: 2019/5/31 10:42 【需求编号】
 * <p>
 * 过滤器：
 * filters：http://localhost:8040/filters 四种类型的过滤器：
 * 1- error 发生错误被执行
 * 2- post 路由到微服务之后被执行
 * 3- pre 请求被路由之前被调用
 * 4- route 将请求路由到微服务
 * <p>
 * <p>
 * 注解 @EnableZuulServer 开启的过滤器
 * 1- error：SendErrorFilter
 * 2- pre：DebugFilter、FormBodyWrapperFilter、Servlet30WrapperFilter、ServletDetectionFilter、PreDecorationFilter
 * 3- route：SimpleHostRoutingFilter、RibbonRoutingFilter（重要）、SendForwardFilter
 * 4- post：SendResponseFilter
 *
 * @author Sam Sho
 * @version V1.0.0
 */
@EnableZuulProxy
@SpringBootApplication
public class MsGatewayZuulApplication {

    public static void main(String[] args) {
        SpringApplication.run(MsGatewayZuulApplication.class, args);
    }

}
